<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::PackedHSIComparison&lt; PointT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_packed_h_s_i_comparison.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1_packed_h_s_i_comparison-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::PackedHSIComparison&lt; PointT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>A packed HSI specialization of the comparison object.  
 <a href="classpcl_1_1_packed_h_s_i_comparison.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="conditional__removal_8h_source.html">conditional_removal.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::PackedHSIComparison&lt; PointT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1_packed_h_s_i_comparison.png" usemap="#pcl::PackedHSIComparison_3C_20PointT_20_3E_map" alt=""/>
  <map id="pcl::PackedHSIComparison_3C_20PointT_20_3E_map" name="pcl::PackedHSIComparison_3C_20PointT_20_3E_map">
<area href="classpcl_1_1_comparison_base.html" title="The (abstract) base class for the comparison object." alt="pcl::ComparisonBase&lt; PointT &gt;" shape="rect" coords="0,0,223,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ae0d641bdaa12332113e6845d54d98299"><td class="memItemLeft" align="right" valign="top"><a id="ae0d641bdaa12332113e6845d54d98299"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>ComponentId</b> { <b>H</b>
, <b>S</b>
, <b>I</b>
 }</td></tr>
<tr class="separator:ae0d641bdaa12332113e6845d54d98299"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bf5b85a6ddf7226a830bc775b99097c"><td class="memItemLeft" align="right" valign="top"><a id="a1bf5b85a6ddf7226a830bc775b99097c"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">PackedHSIComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a1bf5b85a6ddf7226a830bc775b99097c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aede6b9f78f938a5470af291110d0d0ec"><td class="memItemLeft" align="right" valign="top"><a id="aede6b9f78f938a5470af291110d0d0ec"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">PackedHSIComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:aede6b9f78f938a5470af291110d0d0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a4d3a2695be4e844f6fd32c453b82064b inherit pub_types_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a4d3a2695be4e844f6fd32c453b82064b"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1_comparison_base.html">ComparisonBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a4d3a2695be4e844f6fd32c453b82064b inherit pub_types_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a239225d508f06794e90e566f22995b7d inherit pub_types_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a239225d508f06794e90e566f22995b7d"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1_comparison_base.html">ComparisonBase</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a239225d508f06794e90e566f22995b7d inherit pub_types_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab6114412362be092b4544ee53ad3784f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#ab6114412362be092b4544ee53ad3784f">PackedHSIComparison</a> (std::string component_name, ComparisonOps::CompareOp op, double compare_val)</td></tr>
<tr class="memdesc:ab6114412362be092b4544ee53ad3784f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a <a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html" title="A packed HSI specialization of the comparison object.">PackedHSIComparison</a>  <a href="classpcl_1_1_packed_h_s_i_comparison.html#ab6114412362be092b4544ee53ad3784f">更多...</a><br /></td></tr>
<tr class="separator:ab6114412362be092b4544ee53ad3784f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a766a2288e80a173426bb34c3cabdf2fa"><td class="memItemLeft" align="right" valign="top"><a id="a766a2288e80a173426bb34c3cabdf2fa"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#a766a2288e80a173426bb34c3cabdf2fa">~PackedHSIComparison</a> ()</td></tr>
<tr class="memdesc:a766a2288e80a173426bb34c3cabdf2fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a766a2288e80a173426bb34c3cabdf2fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa394610f9d8de6030109371978e771b3"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#aa394610f9d8de6030109371978e771b3">evaluate</a> (const <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &amp;point) const</td></tr>
<tr class="memdesc:aa394610f9d8de6030109371978e771b3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determine the result of this comparison. <br  />
  <a href="classpcl_1_1_packed_h_s_i_comparison.html#aa394610f9d8de6030109371978e771b3">更多...</a><br /></td></tr>
<tr class="separator:aa394610f9d8de6030109371978e771b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="abee85bd5064b70bfecd5b42603010a63"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#abee85bd5064b70bfecd5b42603010a63">ComparisonBase</a> ()</td></tr>
<tr class="memdesc:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:abee85bd5064b70bfecd5b42603010a63 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="aa567e02abc177e1835c95413d6856e4e"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#aa567e02abc177e1835c95413d6856e4e">~ComparisonBase</a> ()</td></tr>
<tr class="memdesc:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aa567e02abc177e1835c95413d6856e4e inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="ab6d09f98dfaba5315dd7b4a72c1d5816"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#ab6d09f98dfaba5315dd7b4a72c1d5816">isCapable</a> () const</td></tr>
<tr class="memdesc:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return if the comparison is capable. <br /></td></tr>
<tr class="separator:ab6d09f98dfaba5315dd7b4a72c1d5816 inherit pub_methods_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a949e02a027ecb3a7bcaec585e8367a16"><td class="memItemLeft" align="right" valign="top"><a id="a949e02a027ecb3a7bcaec585e8367a16"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#a949e02a027ecb3a7bcaec585e8367a16">component_name_</a></td></tr>
<tr class="memdesc:a949e02a027ecb3a7bcaec585e8367a16"><td class="mdescLeft">&#160;</td><td class="mdescRight">The name of the component. <br /></td></tr>
<tr class="separator:a949e02a027ecb3a7bcaec585e8367a16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae244d3507ca4d3bada04b031020de3cc"><td class="memItemLeft" align="right" valign="top"><a id="ae244d3507ca4d3bada04b031020de3cc"></a>
ComponentId&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a></td></tr>
<tr class="memdesc:ae244d3507ca4d3bada04b031020de3cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">The ID of the component. <br /></td></tr>
<tr class="separator:ae244d3507ca4d3bada04b031020de3cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeafd2dd01fe554a44f0ae44cfc758747"><td class="memItemLeft" align="right" valign="top"><a id="aeafd2dd01fe554a44f0ae44cfc758747"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a></td></tr>
<tr class="memdesc:aeafd2dd01fe554a44f0ae44cfc758747"><td class="mdescLeft">&#160;</td><td class="mdescRight">All types (that we care about) can be represented as a double. <br /></td></tr>
<tr class="separator:aeafd2dd01fe554a44f0ae44cfc758747"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a497c1061fd8fe8c8c78c6fd515f6e81b"><td class="memItemLeft" align="right" valign="top"><a id="a497c1061fd8fe8c8c78c6fd515f6e81b"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html#a497c1061fd8fe8c8c78c6fd515f6e81b">rgb_offset_</a></td></tr>
<tr class="memdesc:a497c1061fd8fe8c8c78c6fd515f6e81b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The offset of the component <br /></td></tr>
<tr class="separator:a497c1061fd8fe8c8c78c6fd515f6e81b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1_comparison_base"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1_comparison_base')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1_comparison_base.html">pcl::ComparisonBase&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a9664df54f741bccc65d817f9018611f3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a></td></tr>
<tr class="memdesc:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if capable. <br /></td></tr>
<tr class="separator:a9664df54f741bccc65d817f9018611f3 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="afe5a8620d01d90ba4600e45f1da8d508"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#afe5a8620d01d90ba4600e45f1da8d508">field_name_</a></td></tr>
<tr class="memdesc:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">Field name to compare data on. <br /></td></tr>
<tr class="separator:afe5a8620d01d90ba4600e45f1da8d508 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="ac0eeefbdc9bb6408c60272f4e02bdf90"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#ac0eeefbdc9bb6408c60272f4e02bdf90">offset_</a></td></tr>
<tr class="memdesc:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The data offset. <br /></td></tr>
<tr class="separator:ac0eeefbdc9bb6408c60272f4e02bdf90 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memItemLeft" align="right" valign="top"><a id="a709e0c328ab14d502be0454380932652"></a>
ComparisonOps::CompareOp&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a></td></tr>
<tr class="memdesc:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="mdescLeft">&#160;</td><td class="mdescRight">The comparison operator type. <br /></td></tr>
<tr class="separator:a709e0c328ab14d502be0454380932652 inherit pro_attribs_classpcl_1_1_comparison_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT&gt;<br />
class pcl::PackedHSIComparison&lt; PointT &gt;</h3>

<p>A packed HSI specialization of the comparison object. </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ab6114412362be092b4544ee53ad3784f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6114412362be092b4544ee53ad3784f">&#9670;&nbsp;</a></span>PackedHSIComparison()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">pcl::PackedHSIComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">PackedHSIComparison</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>component_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ComparisonOps::CompareOp&#160;</td>
          <td class="paramname"><em>op</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>compare_val</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a <a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html" title="A packed HSI specialization of the comparison object.">PackedHSIComparison</a> </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">component_name</td><td>either "h", "s" or "i" </td></tr>
    <tr><td class="paramname">op</td><td>the operator to use when making the comparison </td></tr>
    <tr><td class="paramname">compare_val</td><td>the constant value to compare the component value too </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                                                                             : </div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;  <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#a949e02a027ecb3a7bcaec585e8367a16">component_name_</a> (component_name), <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a> (), <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a> (compare_val), <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#a497c1061fd8fe8c8c78c6fd515f6e81b">rgb_offset_</a> ()</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;{</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  <span class="comment">// Get all the fields</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;  std::vector&lt;pcl::PCLPointField&gt; point_fields;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;  <span class="comment">// Use a dummy cloud to get the field types in a clever way</span></div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;  <a class="code" href="classpcl_1_1_point_cloud.html">PointCloud&lt;PointT&gt;</a> dummyCloud;</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  <a class="code" href="group__common.html#gaa2ff830572b7cbf2fd8ce335fd9ca4fb">pcl::getFields</a> (dummyCloud, point_fields);</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160; </div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;  <span class="comment">// Locate the &quot;rgb&quot; field</span></div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;  <span class="keywordtype">size_t</span> d;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;  <span class="keywordflow">for</span> (d = 0; d &lt; point_fields.size (); ++d)</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordflow">if</span> (point_fields[d].name == <span class="stringliteral">&quot;rgb&quot;</span> || point_fields[d].name == <span class="stringliteral">&quot;rgba&quot;</span>) </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;  <span class="keywordflow">if</span> (d == point_fields.size ())</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;  {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::PackedHSIComparison::PackedHSIComparison] rgb field not found!\n&quot;</span>);</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;  }</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160; </div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;  <span class="comment">// Verify the datatype</span></div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;  uint8_t datatype = point_fields[d].datatype;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;  <span class="keywordflow">if</span> (datatype != pcl::PCLPointField::FLOAT32 &amp;&amp;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;      datatype != pcl::PCLPointField::UINT32 &amp;&amp;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;      datatype != pcl::PCLPointField::INT32)</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;  {</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::PackedHSIComparison::PackedHSIComparison] has unusable type!\n&quot;</span>);</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;  }</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160; </div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;  <span class="comment">// verify the offset</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;  uint32_t offset = point_fields[d].offset;</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;  <span class="keywordflow">if</span> (offset % 4 != 0)</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;  {</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::PackedHSIComparison::PackedHSIComparison] rgb field is not 32 bit aligned!\n&quot;</span>);</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;  }</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;  <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#a497c1061fd8fe8c8c78c6fd515f6e81b">rgb_offset_</a> = point_fields[d].offset;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160; </div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;  <span class="comment">// verify the component name</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;  <span class="keywordflow">if</span> (component_name == <span class="stringliteral">&quot;h&quot;</span> ) </div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;  {</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a> = H;</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;  } </div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (component_name == <span class="stringliteral">&quot;s&quot;</span>) </div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;  {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a> = S;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;  } </div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (component_name == <span class="stringliteral">&quot;i&quot;</span>) </div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;  { </div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a> = I;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;  } </div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;  <span class="keywordflow">else</span> </div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;  {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    PCL_WARN (<span class="stringliteral">&quot;[pcl::PackedRGBComparison::PackedRGBComparison] unrecognized component name!\n&quot;</span>);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;  }</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; </div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;  <span class="comment">// Save the context</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;  <a class="code" href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">capable_</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;  <a class="code" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a> = op;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_comparison_base_html_a709e0c328ab14d502be0454380932652"><div class="ttname"><a href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">pcl::ComparisonBase::op_</a></div><div class="ttdeci">ComparisonOps::CompareOp op_</div><div class="ttdoc">The comparison operator type.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:122</div></div>
<div class="ttc" id="aclasspcl_1_1_comparison_base_html_a9664df54f741bccc65d817f9018611f3"><div class="ttname"><a href="classpcl_1_1_comparison_base.html#a9664df54f741bccc65d817f9018611f3">pcl::ComparisonBase::capable_</a></div><div class="ttdeci">bool capable_</div><div class="ttdoc">True if capable.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:113</div></div>
<div class="ttc" id="aclasspcl_1_1_packed_h_s_i_comparison_html_a497c1061fd8fe8c8c78c6fd515f6e81b"><div class="ttname"><a href="classpcl_1_1_packed_h_s_i_comparison.html#a497c1061fd8fe8c8c78c6fd515f6e81b">pcl::PackedHSIComparison::rgb_offset_</a></div><div class="ttdeci">uint32_t rgb_offset_</div><div class="ttdoc">The offset of the component</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:284</div></div>
<div class="ttc" id="aclasspcl_1_1_packed_h_s_i_comparison_html_a949e02a027ecb3a7bcaec585e8367a16"><div class="ttname"><a href="classpcl_1_1_packed_h_s_i_comparison.html#a949e02a027ecb3a7bcaec585e8367a16">pcl::PackedHSIComparison::component_name_</a></div><div class="ttdeci">std::string component_name_</div><div class="ttdoc">The name of the component.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:275</div></div>
<div class="ttc" id="aclasspcl_1_1_packed_h_s_i_comparison_html_ae244d3507ca4d3bada04b031020de3cc"><div class="ttname"><a href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">pcl::PackedHSIComparison::component_id_</a></div><div class="ttdeci">ComponentId component_id_</div><div class="ttdoc">The ID of the component.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:278</div></div>
<div class="ttc" id="aclasspcl_1_1_packed_h_s_i_comparison_html_aeafd2dd01fe554a44f0ae44cfc758747"><div class="ttname"><a href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">pcl::PackedHSIComparison::compare_val_</a></div><div class="ttdeci">double compare_val_</div><div class="ttdoc">All types (that we care about) can be represented as a double.</div><div class="ttdef"><b>Definition:</b> conditional_removal.h:281</div></div>
<div class="ttc" id="aclasspcl_1_1_point_cloud_html"><div class="ttname"><a href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a></div><div class="ttdoc">PointCloud represents the base class in PCL for storing collections of 3D points.</div><div class="ttdef"><b>Definition:</b> point_cloud.h:173</div></div>
<div class="ttc" id="agroup__common_html_gaa2ff830572b7cbf2fd8ce335fd9ca4fb"><div class="ttname"><a href="group__common.html#gaa2ff830572b7cbf2fd8ce335fd9ca4fb">pcl::getFields</a></div><div class="ttdeci">void getFields(const pcl::PointCloud&lt; PointT &gt; &amp;cloud, std::vector&lt; pcl::PCLPointField &gt; &amp;fields)</div><div class="ttdoc">Get the list of available fields (i.e., dimension/channel)</div><div class="ttdef"><b>Definition:</b> io.hpp:79</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aa394610f9d8de6030109371978e771b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa394610f9d8de6030109371978e771b3">&#9670;&nbsp;</a></span>evaluate()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">pcl::PackedHSIComparison</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::evaluate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determine the result of this comparison. <br  />
 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>the point to evaluate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>the result of this comparison. </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1_comparison_base.html#a4c3dbd8f68cb59b0d67bcf7a0b175f2f">pcl::ComparisonBase&lt; PointT &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;{</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;  <span class="comment">// Since this is a const function, we can&#39;t make these data members because we change them here</span></div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;  <span class="keyword">static</span> uint32_t rgb_val_ = 0;</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;  <span class="keyword">static</span> uint8_t r_ = 0;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;  <span class="keyword">static</span> uint8_t g_ = 0;</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;  <span class="keyword">static</span> uint8_t b_ = 0;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;  <span class="keyword">static</span> int8_t h_ = 0;</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;  <span class="keyword">static</span> uint8_t s_ = 0;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  <span class="keyword">static</span> uint8_t i_ = 0;</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160; </div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;  <span class="comment">// We know that rgb data is 32 bit aligned (verified in the ctor) so...</span></div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;  <span class="keyword">const</span> uint8_t* pt_data = <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span>uint8_t*<span class="keyword">&gt;</span> (&amp;point);</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;  <span class="keyword">const</span> uint32_t* rgb_data = <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span>uint32_t*<span class="keyword">&gt;</span> (pt_data + <a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#a497c1061fd8fe8c8c78c6fd515f6e81b">rgb_offset_</a>);</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;  uint32_t new_rgb_val = *rgb_data;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160; </div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;  <span class="keywordflow">if</span> (rgb_val_ != new_rgb_val) </div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;  { <span class="comment">// avoid having to redo this calc, if possible</span></div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    rgb_val_ = new_rgb_val;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="comment">// extract r,g,b</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    r_ = <span class="keyword">static_cast &lt;</span>uint8_t<span class="keyword">&gt;</span> (rgb_val_ &gt;&gt; 16); </div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    g_ = <span class="keyword">static_cast &lt;</span>uint8_t<span class="keyword">&gt;</span> (rgb_val_ &gt;&gt; 8);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    b_ = <span class="keyword">static_cast &lt;</span>uint8_t<span class="keyword">&gt;</span> (rgb_val_);</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160; </div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;    <span class="comment">// definitions taken from http://en.wikipedia.org/wiki/HSL_and_HSI</span></div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordtype">float</span> hx = (2.0f * r_ - g_ - b_) / 4.0f;  <span class="comment">// hue x component -127 to 127</span></div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;    <span class="keywordtype">float</span> hy = <span class="keyword">static_cast&lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (g_ - b_) * 111.0f / 255.0f; <span class="comment">// hue y component -111 to 111</span></div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;    h_ = <span class="keyword">static_cast&lt;</span>int8_t<span class="keyword">&gt;</span> (atan2(hy, hx) * 128.0f / M_PI);</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160; </div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;    int32_t i = (r_+g_+b_)/3; <span class="comment">// 0 to 255</span></div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;    i_ = <span class="keyword">static_cast&lt;</span>uint8_t<span class="keyword">&gt;</span> (i);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160; </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    int32_t m;  <span class="comment">// min(r,g,b)</span></div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;    m = (r_ &lt; g_) ? r_ : g_;</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    m = (m &lt; b_) ? m : b_;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;    s_ = <span class="keyword">static_cast&lt;</span>uint8_t<span class="keyword">&gt;</span> ((i == 0) ? 0 : 255 - (m * 255) / i); <span class="comment">// saturation 0 to 255</span></div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;  }</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160; </div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;  <span class="keywordtype">float</span> my_val = 0;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160; </div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;  <span class="keywordflow">switch</span> (<a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#ae244d3507ca4d3bada04b031020de3cc">component_id_</a>) </div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;  {</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    <span class="keywordflow">case</span> H:</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;      my_val = <span class="keyword">static_cast &lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (h_);</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="keywordflow">case</span> S:</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;      my_val = <span class="keyword">static_cast &lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (s_);</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keywordflow">case</span> I:</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;      my_val = <span class="keyword">static_cast &lt;</span><span class="keywordtype">float</span><span class="keyword">&gt;</span> (i_);</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;      <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;      assert (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;  }</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160; </div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;  <span class="comment">// now do the comparison</span></div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;  <span class="keywordflow">switch</span> (this-&gt;<a class="code" href="classpcl_1_1_comparison_base.html#a709e0c328ab14d502be0454380932652">op_</a>) </div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;  {</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::GT :</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;      <span class="keywordflow">return</span> (my_val &gt; this-&gt;<a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a>);</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::GE :</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;      <span class="keywordflow">return</span> (my_val &gt;= this-&gt;<a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a>);</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::LT :</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;      <span class="keywordflow">return</span> (my_val &lt; this-&gt;<a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a>);</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::LE :</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;      <span class="keywordflow">return</span> (my_val &lt;= this-&gt;<a class="code" href="classpcl_1_1_packed_h_s_i_comparison.html#aeafd2dd01fe554a44f0ae44cfc758747">compare_val_</a>);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordflow">case</span> pcl::ComparisonOps::EQ :</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      <span class="keywordflow">return</span> (my_val == this-&gt;compare_val_);</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;    <span class="keywordflow">default</span>:</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;      PCL_WARN (<span class="stringliteral">&quot;[pcl::PackedHSIComparison::evaluate] unrecognized op_!\n&quot;</span>);</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;      <span class="keywordflow">return</span> (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;  }</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;}</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>filters/include/pcl/filters/<a class="el" href="conditional__removal_8h_source.html">conditional_removal.h</a></li>
<li>filters/include/pcl/filters/impl/<a class="el" href="conditional__removal_8hpp_source.html">conditional_removal.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_packed_h_s_i_comparison.html">PackedHSIComparison</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
